import 'package:flutter/material.dart';
import 'package:flutter_wan_android/core/config/dependencies.dart';
import 'package:flutter_wan_android/core/config/router.dart';
import 'package:provider/provider.dart';

import 'core/config/app_theme.dart';

void main() {
  runApp(MultiProvider(
      providers: sharedProviders,
      child: const MyApp()
  ));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: AppRouter.initialRoute,
      routes: AppRouter.routes,
      onGenerateRoute: AppRouter.onGenerateRoute,

      title: 'Flutter Demo',
      theme: AppTheme.build(context),
      // home: const MainScreen(),
    );
  }
}
